package com.bls.productmall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bls.productmall.entity.Order;
import com.bls.productmall.enums.OrderStatus;

import java.util.List;

public interface OrderService extends IService<Order> {

    Order createOrderByProductIdAndUserId(Long productId, Long userId);

    void saveCodeUrl(String orderNo, String codeUrl);

    List<Order> listOrderByCreateTimeDesc();

    List<Order> listOrderByUserIdAndUserDelete(Long userId);

    Order userDeleteOrder(String orderNo);

    void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);

    String getOrderStatus(String orderNo);

    List<Order> getNoPayOrderByDuration(int minutes);

    Order getOrderByOrderNo(String orderNo);
}
